﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SpacesToBloggerMigrator
{
    class Application
    {
        public static void Main(string[] args)
        {
            IBlogEngine spaces = EngineFactory.GetInstance("spaces");
            IBlogEngine blogger = EngineFactory.GetInstance("blogger");

            spaces.Login("#######", "######", new Uri("http://something.com"));
            blogger.Login("########", "#########", new Uri("http://something.com"));
            List<_Post> posts = spaces.GetPosts();
            foreach (_Post p in posts)
            {
                blogger.InsertPost(p);
            }
        }
    }
}
